/*
 * usb_dev.h
 *
 *  Created on: 9 Mar 2010
 *      Author: bob
 */

#ifndef USB_DEV_H_
#define USB_DEV_H_

/* The device's vendor and product id */
#define MY_VID 65534
#define MY_PID 7

#define false 0
#define true 1

// Prototypes
// PUBLIC
int open_dev(void);
void close_dev(void);
int bulk_read(int, char *, int, int);
int bulk_write(int, char *, int, int);

//PRIVATE
usb_dev_handle *__open_dev(void);

#endif /* USB_DEV_H_ */
